prebuild.input = json_parser.yy
prebuild.output = json_parser.cc
prebuild.commands = bison -t -o ${QMAKE_FILE_BASE} -d ${QMAKE_FILE_IN}
prebuild.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += prebuild


include(../version.pri)
VERSION = $${QJSON_LIB_MAJOR_VERSION}.$${QJSON_LIB_MINOR_VERSION}.$${QJSON_LIB_PATCH_VERSION}

QT       += core

TARGET = qjson
TEMPLATE = lib
CONFIG += dll
CONFIG += dll external
include(../buildconf.pri)

DEFINES += QJSON_MAKEDLL

HEADERS += parser.h parserrunnable.h qobjecthelper.h serializer.h serializerrunnable.h qjson_export.h

SOURCES += parser.cpp qobjecthelper.cpp json_scanner.cpp json_parser.cc parserrunnable.cpp serializer.cpp serializerrunnable.cpp
